function showmenu(menu)
{
	if (menu.style.display == 'none') 
		menu.style.display = 'block';
	else 
		menu.style.display = 'none';
}

function showElt(elt)
{
	state=document.getElementById(elt).style.display;
	if(state=="none")
	{
		document.getElementById(elt).style.display="block";
	}
}

function HideElt(elt)
{
	state=document.getElementById(elt).style.display;
	if(state=="block")
	{
		document.getElementById(elt).style.display="none";
	}
	<!-- else{document.getElementById(elt).style.visibility="hidden";} --> 
}

function openDeleteWindow(filename,frmname)
{
	if(confirm("Do you really want to delete " + filename.value + " ?" ))
	{
		frmname.submit();
	}
}

function openCVCheckWindow()
{
	window.open("Student/StudentCVCheck.jsp", "Student - Check CV", "toolbar=no, status=yes, scrollbars=yes, resizable=no, width=500, height=350, left=50, top=100");
}

function enableSendBtn(select,elt)
{
	idx = document.getElementById(select).selectedIndex;
	if(idx > 0)
	{
		document.getElementById(elt).disabled = false;
	}
	else
	{
		document.getElementById(elt).disabled = true;
	}
}

